package com.tozed.android.launcher.simpleui;

import com.tozed.android.launcher.LauncherProvider;

import android.net.Uri;
import android.provider.BaseColumns;

public class SimpleLauncherSettings
{
	static abstract interface BaseLauncherColumns extends BaseColumns
	{
		public static final String ICON = "icon";
		public static final String ICON_PACKAGE = "iconPackage";
		public static final String ICON_RESOURCE = "iconResource";
		public static final String ICON_TYPE = "iconType";
		public static final int ICON_TYPE_BITMAP = 1;
		public static final int ICON_TYPE_RESOURCE = 0;
		public static final String INTENT = "intent";
		public static final String ITEM_TYPE = "itemType";
		public static final int ITEM_TYPE_APPLICATION = 0;
		public static final int ITEM_TYPE_FOLDER = 2;
		public static final int ITEM_TYPE_SHORTCUT = 1;
		public static final String TITLE = "title";
	}

	public static final class SimpleFavorites implements SimpleLauncherSettings.BaseLauncherColumns
	{
		public static final String APPWIDGET_ID = "appWidgetId";
		public static final String CELLX = "cellX";
		public static final String CELLY = "cellY";
		public static final String CONTAINER = "container";
		public static final int CONTAINER_DESKTOP = -100;
		public static final int CONTAINER_FOLDER_DOWNLOAD = 2;
		public static final int CONTAINER_FOLDER_OTHER = 1;
		
		//public static final Uri CONTENT_URI = Uri
		//		.parse("content://com.tozed.android.launcher.settings/favorites_simpleui?notify=true");
		
		public static final Uri CONTENT_URI = Uri.parse("content://" +
                	LauncherProvider.AUTHORITY + "/" + "favorites_simpleui" +
                								"?" + LauncherProvider.PARAMETER_NOTIFY + "=true");
		
		static final Uri CONTENT_URI_NO_NOTIFICATION = Uri
				.parse("content://com.tozed.android.launcher.settings/favorites_simpleui?notify=false");
		
		static final Uri CONTENT_URI_SD_CARD = Uri
				.parse("content://com.tozed.android.launcher.settings/simple_delete_favorites?notify=true");
		
		public static final String DISPLAY_MODE = "displayMode";
		
		static final Uri ICON_MATCH_CONTENT_URI = Uri
				.parse("content://com.tozed.android.launcher.settings/simple_favorites_icon_match?notify=true");
		
		public static final int ITEM_TYPE_APPWIDGET = 4;
		public static final int ITEM_TYPE_FOLDER = 2;
		public static final int ITEM_TYPE_NEED_ADDED = 3;
		public static final int ITEM_TYPE_WIDGET_CLOCK = 1000;
		public static final int ITEM_TYPE_WIDGET_PHOTO_FRAME = 1002;
		public static final int ITEM_TYPE_WIDGET_SEARCH = 1001;
		public static final String SCREEN = "screen";
		public static final String SPANX = "spanX";
		public static final String SPANY = "spanY";
		public static final String URI = "uri";

		static Uri getContentUri(long id, boolean isNotify){
			return Uri.parse("content://com.tozed.android.launcher.settings/favorites_simpleui/" 
								+ id + "?" + "notify" + "=" + isNotify);
		}

		static Uri getDeleteContentUri(long id, boolean isNotify)
		{
			return Uri.parse("content://com.tozed.android.launcher.settings/simple_delete_favorites/"
								+ id + "?" + "notify" + "=" + isNotify);
		}
	}
}
